{extend name='public/layout' /}
{block name='content'}
<div class="main">
    <div class="position">
        <p>
            <span>更新时间：{:date("Y年m月d日")}</span>您当前的位置：<a href="{:url('Index/index')}">{$site.title}</a> > <a href="{:url('Xiaoqu/index')}">小区</a>
        </p>
    </div>
    <div class="screen">
        <div class="tab03 overflow_h">
            <ul class="idTabs">
                <li><a href="{:url('Xiaoqu/index')}" class="selected">小区列表</a></li>
                <li><a href="{:url('Second/index')}">二手房</a></li>
                <li><a href="{:url('Chuzu/index')}">出租房</a></li>
            </ul>
        </div>
        <div class="screen_box">
            <div class="screen_box01 overflow_h">
                <span>区域：</span>
                <ul>
                    <li><a href="{:getUrl('Xiaoqu/index','area',$param,0)}" {empty name='search.area'}class="on"{/empty}>不限</a></li>
                    {volist name='area' id='vo'}
                    <li><a title="{$vo.name}" {if condition='$vo.id eq $search.area'}class="on"{/if} href="{:getUrl('Xiaoqu/index','area',$param,$vo['id'])}">{$vo.name}</a></li>
                    {/volist}
                </ul>
            </div>
            <div class="screen_box01 overflow_h">
                <span>类型：</span>
                <ul>
                    <li><a href="{:getUrl('Xiaoqu/index','type',$param,0)}" {empty name='search.type'}class="on"{/empty}>不限</a></li>
                    {volist name='house_type' id='vo'}
                    <li><a href="{:getUrl('Xiaoqu/index','type',$param,$key)}" {if condition='$key eq $search.type'}class="on"{/if}>{$vo.name}</a></li>
                    {/volist}
                </ul>
            </div>
            <div class="screen_box01 overflow_h">
                <span>年代：</span>
                <ul>
                    <li><a href="{:getUrl('Xiaoqu/index','year',$param,0)}" {empty name='search.year'}class="on"{/empty}>不限</a></li>
                    {volist name='niandai' id='vo'}
                    <li><a href="{:getUrl('Xiaoqu/index','year',$param,$key)}" {if condition='$key eq $search.year'}class="on"{/if}>{$vo.name}</a></li>
                    {/volist}
                </ul>
            </div>
        </div>
    </div>
    <div class="overflow_h">
        <div class="house_l">
            <div class="s_h_n1 es_px">
                <span>排序：</span>
                <a href="{:getUrl('Xiaoqu/index','sort',$param,0)}" {if condition="$sort eq 0"}class="no_select no_select3"{/if}>默认</a>
                {if condition="$sort eq 1"}
                <a href="{:getUrl('Xiaoqu/index','sort',$param,2)}" class="no_select no_select3">年代</a>
                {elseif condition="$sort eq 2"}
                <a href="{:getUrl('Xiaoqu/index','sort',$param,1)}" class="no_select no_select4">年代</a>
                {else /}
                <a href="{:getUrl('Xiaoqu/index','sort',$param,1)}">年代</a>
                {/if}
            </div>
            <div class="house_box ">
                <ul>
                    {volist name='lists' id='vo' empty='暂无数据'}
                    <li class="overflow_h">
                        <div class="h_box01">
                            <a href="{:url('Xiaoqu/detail',['id'=>$vo['id']])}" title="{$vo.title}"><img src="__IMG__/loading.gif" alt="{$vo.title}" class="lazy" data-original="{$vo.img}" width="217" height="165"></a>
                        </div>
                        <div class="h_box02_1">
                            <b><span><a href="{:url('Xiaoqu/detail',['id'=>$vo['id']])}"  title="{$vo.title}">{$vo.title}</a></span></b>
                        </div>
                        <div class="h_box04">
                            <p>
                                建筑年代：{$vo.niandai}年
                            </p>
                            <p>
                                所在位置：{$vo.address}
                            </p>
                            <div class="h_ts overflow_h">
                                {volist name='vo.estate_type_name' id='data'}
                                <i class="h_ts0{$i}">{$data}</i>
                                {/volist}
                            </div>
                            <p class="overflow_h m_t_10">
                                <span class="contact"><a href="{:url('Xiaoqu/used',['id'=>$vo['id']])}">出售({$vo.second_num})套</a></span>
                                <span class="contact"><a href="{:url('Xiaoqu/rental',['id'=>$vo['id']])}">出租({$vo.chuzu_num})套</a></span>
                            </p>
                        </div>

                    </li>
                    {/volist}

                </ul>
                <div class="plastic_bottom_pages">
                    {$pages}
                </div>
            </div>
        </div>
        <div class="house_r">
            <div class="release">
                <a href="{:url('Release/entrustUsed')}" class="but110">委托出售</a>
                <a href="{:url('Release/entrustRental')}" class="but110">委托出租</a>
                <a href="{:url('Release/buy')}" class="but111">发布求购</a>
                <a href="{:url('Release/rent')}" class="but111">发布求租</a>
            </div>
            <div class="m_t_15">
                <div class="title01">
                    {$cityInfo.name}二手房推荐
                </div>
                <div class="s_h_tuijian">
                    {include file='second/right' /}
                </div>
            </div>
        </div>
    </div>
</div>
{/block}